Package jeresources.compatibility
Class DungeonRegistryImpl
java.lang.Object
jeresources.compatibility.DungeonRegistryImpl
- All Implemented Interfaces:
IDungeonRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidcommit()voidregisterCategory(String category, String localization) Add a new categoryIDungeonRegistry.registerCategory("chest/chest_type", "localization.string");voidregisterChest(String category, net.minecraft.resources.ResourceLocation tableLocation) voidregisterChest(String category, net.minecraft.world.level.storage.loot.LootTable lootTable)
-
Constructor Details
-
DungeonRegistryImpl
protected DungeonRegistryImpl()
-
-
Method Details
-
registerCategory
Description copied from interface:IDungeonRegistryAdd a new categoryIDungeonRegistry.registerCategory("chest/chest_type", "localization.string");- Specified by:
registerCategoryin interfaceIDungeonRegistry- Parameters:
category- the category namelocalization- the translation key
-
registerChest
public void registerChest(@Nonnull String category, @Nonnull net.minecraft.resources.ResourceLocation tableLocation) - Specified by:
registerChestin interfaceIDungeonRegistry- Parameters:
category- can be a localization string directly or a registered categorytableLocation- theResourceLocationof the loot table
-
registerChest
public void registerChest(@Nonnull String category, @Nonnull net.minecraft.world.level.storage.loot.LootTable lootTable) - Specified by:
registerChestin interfaceIDungeonRegistry- Parameters:
category- can be a localization string directly or a registered categorylootTable- the actualLootTable
-
commit
protected static void commit()
-